package com.usian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 陈宇轩
 * @version 1.0
 * @date 2023/8/11 14:53
 */

@Data
@ToString
@TableName("sumer")
public class Sumer {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String photo;
    private String name;
    private String code;
    private String sex;
    private String sonal;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date date;
    private Integer status;
    private Integer roleId;
    private String zhanghao;
    private Integer did;
    private Integer teamsId;
    @TableField(exist = false)
    private String roleName;
    @TableField(exist = false)
    private String dname;
    private String username;
    private String password;
}
